package com.tzy.evaluation.mapper;
import com.tzy.common.entity.UserLikes;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserLikeRepository {

    public UserLikes save(UserLikes userLike);

    public List<UserLikes> saveAll(List<UserLikes> list) ;

    public Page<UserLikes> findLikedListByLikedUserId(String likedUserId, Pageable pageable) ;

    public Page<UserLikes> findLikedListByLikedPostId(String likedPostId, Pageable pageable) ;

    public UserLikes findByLikedUserIdAndLikedPostId(String likedUserId, String likedPostId);

    public void transLikedFromRedis2DB() ;

    public void transLikedCountFromRedis2DB();

}
